package com.sheng.whyclass.work.model;

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2016/4/6.
 */
public class ScoreResp {


    /**
     * static : 1
     * data : {"id":"21","s_id":"1","w_c_id":"16","score":"99"}
     */

    @SerializedName("static")
    private int staticX;
    /**
     * id : 21
     * s_id : 1
     * w_c_id : 16
     * score : 99
     */

    private DataBean data;

    public static ScoreResp getFromJson(String json) {
        if (json == null) {
            return null;
        }
        Gson gson = new Gson();
        ScoreResp info = null;
        try {
            info = gson.fromJson(json, ScoreResp.class);
        } catch (JsonSyntaxException jsonSyntaxException) {
        }
        return info;
    }

    public int getStaticX() {
        return staticX;
    }

    public void setStaticX(int staticX) {
        this.staticX = staticX;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }


    public static class DataBean {
        private String id;
        private String s_id;
        private String w_c_id;
        private String score;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getS_id() {
            return s_id;
        }

        public void setS_id(String s_id) {
            this.s_id = s_id;
        }

        public String getW_c_id() {
            return w_c_id;
        }

        public void setW_c_id(String w_c_id) {
            this.w_c_id = w_c_id;
        }

        public String getScore() {
            return score;
        }

        public void setScore(String score) {
            this.score = score;
        }
    }
}
